how to solve recurrence relation by using root method